Skip to content

Instantly share code, notes, and snippets.

// Build d8 using:
// a) Run once
// git checkout 6f98fbe86a0d11e6c902e2ee50f609db046daf71
// gclient sync
// gn gen ./out/x64.debug
// gn gen ./out/x64.release
//
// b)
// Debug Build:
// ninja -C ./out/x64.debug d8
@kevin-david
kevin-david / esphome-esp32-wave-radon-proxy.yml
Last active May 21, 2024 20:57
Airthings Wave Radon: ESPHome Sensor / Proxy
##
## See https://github.com/kevin-david/home-assistant-shared/blob/main/esphome/esp32-wave-radon-proxy.yml for future updates
##
substitutions:
name: "<YOUR_DEVICE_NAME_HERE>"
wave_serial: "<YOUR_SERIAL_OR_UNIQUE_ID_HERE>"
# See https://esphome.io/components/sensor/airthings_ble.html for how to find this
# Note: If you have your ESP32 connected to your Wave device, it might cause problems syncing with your phone
# Suggest powering down the ESP device before running firmware updates or attempting to sync with AirThings cloud, if you care about that
@dgibbs64
dgibbs64 / SteamCMDCommmandsandCionvars
Created May 9, 2015 09:51
SteamCMD Commands and Convars
Convars:
app_info_http_min = "0" :
app_info_http_num_sockets = "8" :
AsyncFileIODisableWrite = "0" :
AsyncFileIOExpectOutstandingIO = "16" :
AsyncFileIOForceGenericIO = "0" :
AsyncFileIOMaxPending = "128" :
AsyncFileIOReadHandleCache = "32" :
AsyncFileIOWriteHandleCache = "128" :
batterypercent = "0" :
@marians
marians / CouchDB_Python.md
Last active May 21, 2024 20:53
The missing Python couchdb tutorial

This is an unofficial manual for the couchdb Python module I wish I had had.

Installation

pip install couchdb

Importing the module

@klezVirus
klezVirus / EtwStartWebClient.cs
Last active May 21, 2024 20:52
A PoC in C# to enable WebClient Programmatically
using System.Runtime.InteropServices;
using System;
/*
* Simple C# PoC to enable WebClient Service Programmatically
* Based on the C++ version from @tirannido (James Forshaw)
* Twitter: https://twitter.com/tiraniddo
* URL: https://www.tiraniddo.dev/2015/03/starting-webclient-service.html
*
* Compile with:
@ghinda
ghinda / object-to-form-data.js
Last active May 21, 2024 20:48
JavaScript Object to FormData, with support for nested objects, arrays and File objects. Includes Angular.js usage.
// takes a {} object and returns a FormData object
var objectToFormData = function(obj, form, namespace) {
var fd = form || new FormData();
var formKey;
for(var property in obj) {
if(obj.hasOwnProperty(property)) {
if(namespace) {
@Tamal
Tamal / set-chroot.sh
Last active May 21, 2024 20:43
Setting up chroot from a live image in Fedora. Regenerate grub2 for Fedora.
$ # Use Live CD to boot
$ sudo su # Switch to root
$ fdisk -l # Get names of root, boot & EFI partition names. you can also use blkid
$ mount /dev/mapper/fedora_localhost--live-root /mnt # mount root partition
$ cat /mnt/etc/fedora-release
Fedora release 31 (Thirty One)
$ mount /dev/nvme0n1p2 /mnt/boot # mount boot partition
$ mount /dev/nvme0n1p1 /mnt/boot/efi # mount EFI partition
# Note: If you are not able to mount EFI partition ('Input/Output error'),
# You may have to repair ESP file system or format ESP.
@denji
denji / copy-db.sh
Last active May 21, 2024 20:43 — forked from rcmachado/copy-db.sh
Script to copy all tables from one database to another.
#!/bin/bash
#
# Script to copy all tables from one database to another.
#
# Requires:
# * MySQL 5.6
# * Percona xtrabackup tools (http://www.percona.com/software/percona-xtrabackup)
#
# Known caveats:
# * Will copy structure of all tables from one database to another, but only InnoDB